package com.springboot2.jpa.dao;

import com.springboot2.jpa.bean.User;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface UserRepository extends MongoRepository<User,Long> {

    List<User> findAllByUsername(String name);


}
